<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stringify&parse</title>
    <script src="../jquery-1.7.2.js"></script>
</head>
<body>
<p>
</p>
<script>
    $(function(){
        var goodsInfor = [{"goods_id":1000,"jinan":{"big_max":50,"big_min":1,"small_max":200,"small_min":0},"qingdao":{"big_max":0,"big_min":0,"small_max":20,"small_min":1}},{"goods_id":2000,"jinan":{"big_max":0,"big_min":0,"small_max":200,"small_min":0},"qingdao":{"big_max":10,"big_min":1,"small_max":20,"small_min":1}}]
        var data = goodsInfor;
        for(var key in data){
            console.log(data[key]);
//            取出全部
//            json2.html:16 Object {goods_id: 1000, jinan: Object, qingdao: Object}
//            json2.html:16 Object {goods_id: 2000, jinan: Object, qingdao: Object}
        }
        for(var key in data){
            for(var one in data[key]){
                 console.log(data[key][one]);
            }
//            取出全部
//            1000
//            json2.html:21 Object {big_max: 50, big_min: 1, small_max: 200, small_min: 0}
//            json2.html:21 Object {big_max: 0, big_min: 0, small_max: 20, small_min: 1}
//            json2.html:21 2000
//            json2.html:21 Object {big_max: 0, big_min: 0, small_max: 200, small_min: 0}
//            json2.html:21 Object {big_max: 10, big_min: 1, small_max: 20, small_min: 1}
        }
//        for(var key in data){
//            for(var one in data[key]){
//                for(var num in data[key][one]){
//                    console.log(data[key][one][num]);
//                }
//            }
////            取出全部
//        }
    })
</script>
</body>
</html>